﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;

namespace YiShi.KnowledgePoint
{
    public partial class JsonTest : System.Web.UI.Page
    {
        JObject jo;
        protected string html = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            var o = new
            {
                a = 1,
                b = "Hello, World!",
                c = new[] { 1, 2, 3 },
                d = new Dictionary<string, int> { { "x", 1 }, { "y", 2 } }
            };
            jo = new JObject();
            

            html = JsonConvert.SerializeObject(o);


        }
    }
}
